package han.cirno.corrupt.util

import android.content.Context
import androidx.appcompat.view.ContextThemeWrapper
import han.cirno.corrupt.R

object ThemeUtil {
    fun applyTheme(context: Context, id:Int) {
        val dynamicTheme = ContextThemeWrapper(context, R.style.Theme_Corrupt_NoActionBar_Bridge).theme
        dynamicTheme.applyStyle(id, true)
        context.theme.setTo(dynamicTheme)
    }
}